/*
 * @Description: 
 * @Author: huacong
 * @Date: 2020-12-02 10:28:44
 * @LastEditTime: 2020-12-02 14:18:59
 * @LastEditors: huacong
 */
import ContentView from '@/layouts/ContentView'

export const routes = [
  {
    path: '/',
    name: 'resource',
    meta: { title: '资源管理库' },
    component: ContentView,
    redirect: '/biology',
    children: [
      {
        path: '/biology',
        name: 'biology',
        meta: { title: '生物特征库', keepAlive: true, permission: ['resource_biology'] },
        component: () => import('../views/biology/List.vue')
      }
    ]
  },
  {
    path: '*',
    redirect: '/404',
    hidden: true
  }
]

/**
 * 基础路由
 * @type { *[] }
 */

export const constantRouterMap = [
  {
    path: '/404',
    component: () => import(/* webpackChunkName: "fail" */ '@/components/Exception/ExceptionPage')
  }
]
